﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class NumSum:Calculate 
    {
        public NumSum(int a, int b) : base(a, b)
        {

        }
        public override int DisplayResult()
        {
            return A + B;
        }
    }
    class NumSub : Calculate
    {
        public NumSub(int a, int b) : base(a, b)
        {

        }
        public override int DisplayResult()
        {
            return A + B;
        }
    }
    class NumMul : Calculate
    {
        public NumMul(int a, int b) : base(a, b)
        {

        }
        public override int DisplayResult()
        {
            return A * B;
        }
    }
    class NumDiv : Calculate
    {
        public NumDiv(int a, int b) : base(a, b)
        {

        }
        public override int DisplayResult()
        {         
                return A / B;
        }
    }
}
